package com.linko.intelligent.base.enums;

/**
 * @author: Yu Fei,
 * @date: 2021/12/30 9:45 上午
 */
public enum ErrorEnum {
    /*
     * 错误信息
     * */
    E_400(400, "请求处理异常，请稍后再试"),
    E_500(500, "请求方式有误,请检查 GET/POST"),
    E_501(501, "请求路径不存在"),
    E_502(502, "权限不足"),
    E_10008(10008, "角色删除失败,尚有用户属于此角色"),
    E_10009(10009, "账户已存在"),
    E_10010(10010, "账号/密码错误"),
    E_10011(10011, "原始密码错误"),
    E_10012(10012, "用户信息不匹配"),
    E_10013(10013, "账号由商家开通，不支持注册。如要开通或恢复账户请联系机械厂商或经销商。"),

    E_20011(20011, "登陆已过期,请重新登陆"),

    E_90003(90003, "缺少必填参数");

    private final int errorCode;

    private final String errorMsg;

    ErrorEnum(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
